package com.gs.weather.dao.mapper;

import com.gs.weather.entity.DisasterSubtype;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Legolas
 * Date: 2017/9/21 0021
 */
@Repository
public interface DisasterSubtypeMapper {
    //添加灾害子类型
    void addDisasterSubtype(DisasterSubtype disasterSubtype);
    //更新灾害类型
    void updateDisasterSubtype(DisasterSubtype disasterSubtype);
    //根据灾害父类型id查询所有灾害子类型(含强度)
    List<DisasterSubtype> queryDisasterSubtypeByDisasterTypeId(int id);
    //删除灾害子类型
    void deleteDisasterSubtype(int id);

    //查询灾害子类型（含强度）
    List<DisasterSubtype> queryDisasterSubtypeById(int id);

    //根据id删除所有子类型的灾害强度
    void deleteStrengthByDisasterSubtypeId(int id);

}
